package com.zhaoqi.hr.config;

import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Configuration
@EnableJpaRepositories(basePackages = "com.zhaoqi.hr.repository")
@EntityScan(basePackages = "com.zhaoqi.hr.entity")
@EnableTransactionManagement
public class DatabaseConfig {
    // 让Spring Boot自动配置处理entityManagerFactory和数据源
}
